<!DOCTYPE html>
<html lang="zh_cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>用户列表</title>
</head>

<body>
<input type="hidden" id="menuId" value="${menuId}"/>
<div class="portlet box grey-cascade" style="width: 99%">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-gift"></i>查询条件
        </div>
        <div class="tools">
        </div>
    </div>
    <div class="portlet-body form">
        <br />
        <form class="form-horizontal">
            <div class="col-sm-3">
                <label class="control-label col-md-3">用户名：</label>
                <div class="input-group">
                    <input class="form-control" placeholder="用户名" name="username" id="usernameQuery" type="text" th:autofocus="true" />
                </div>
            </div>
            <div class="col-sm-3">
                <label class="control-label col-md-3">姓名：</label>
                <div class="input-group">
                    <input class="form-control" placeholder="姓名" name="name" id="nameQuery" />
                </div>
            </div>
            <button type="button" id="query" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i>查询
            </button>
        </form>
        <br/>
    </div>
</div>
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div class="portlet box grey-cascade" style="width: 99%">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-globe"></i>用户列表
        </div>
        <div class="tools">
        </div>
    </div>
    <div class="portlet-body" style="font-size: 14px">
        <div class="table-toolbar">
            <div class="row">
                <div class="col-md-6">
                    <div class="btn-group"><button id="add" class="btn btn-primary"> 添加</button></div>
                    <div class="btn-group"><button class="btn green" id="update">修改</button></div>
                    <div class="btn-group"><button class="btn red" id="delete">删除</button></div>
                    <div class="btn-group"><button class="btn green" id="resetPwd">重置密码</button></div>
                </div>
            </div>
        </div>
        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
            <thead>
            <tr>
                <th>序号</th>
                <th>用户名</th>
                <th>姓名</th>
                <th>登录时间</th>
                <th>登录IP</th>
                <th>退出时间</th>
                <th>角色</th>
            </tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>
</div>
<!-- END EXAMPLE TABLE PORTLET-->

<div id="addWin" style="display: none;width: 99%" class="portlet-body form">
    <form role="form" action="sysUser/addOrUpdate" method="post" id="form" class="form-horizontal form-validate">
        <input type="hidden" value="${_csrf.token}" name="${_csrf.parameterName}" />
        <input type="hidden" value="" name="id" id="userId" />
        <div class="form-body">
            <div class="form-group">
                <label class="control-label col-md-3">用户名 <span class="required">* </span>
                </label>
                <div class="col-md-8">
                    <input type="text" class="form-control" data-required="1" id="username" name="username" placeholder="请输入用户名" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-3">姓名 <span class="required">* </span>
                </label>
                <div class="col-md-8">
                    <input type="text" class="form-control" name="name" id="name" placeholder="请输入姓名" />
                </div>
            </div>
            <div class="form-group" id="passwordPwd">
                <label class="control-label col-md-3">密码 <span class="required">* </span>
                </label>
                <div class="col-md-8">
                    <input type="password" class="form-control" name="password" id="password" placeholder="请输入密码" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-3">角色 <span class="required">* </span>
                </label>
                <div class="col-md-8">
                    <select class="form-control" name="roleId" id="roleId">
                    </select>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    jQuery(document).ready(function () {
        require(["modules/sys/sysUserList"], function (view) {
            view.initPage();
        });
    });
</script>
</body>
</html>